package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.vo.CourseInfoVo;
import com.atguigu.eduservice.entity.vo.CoursePublishVo;
import com.atguigu.eduservice.entity.vo.CourseQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2021-06-01
 */
public interface EduCourseService extends IService<EduCourse> {
    //添加课程信息的方法
    void saveCourseInfo(CourseInfoVo courseInfoVo);

    //根据课程id获取课程基本信息
    CourseInfoVo getCourseInfo(String courseId);

    //修改课程信息
    void updateCourseInfo(CourseInfoVo courseInfoVo);

    //根据课程ID查询课程确认信息
    CoursePublishVo getPublishInfo(String id);

    //课程最终发布，修改课程状态为Normal
    Boolean publishCourse(String id);

    //课程列表，带条件分页
    Page<EduCourse> pageCourseCondition(int current, int limit, CourseQuery courseQuery);

    //根据课程id删除课程
    void deleteCourse(String courseId);
}
